package com.file_io;

import java.io.Serializable;

public class Staff implements Serializable {
    private String name;
    private int age;
    private double salary;

    public Staff(String name, int age, double salary) {
        this.name = name;
        this.age = age;
        this.salary = salary;
    }

    public Staff() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }
    public StringBuffer toString(Staff staff){
        StringBuffer stringBuffer=new StringBuffer(staff.getName()+"/"+staff.getAge()+"/"+staff.getSalary());
        return stringBuffer;
    }
}
